import Mock from "mockjs";
import { listPage } from "./util";
export const getTableList = (query: any) => {
    return Mock.mock(
        listPage({
            page_num: query.page_num || 1,
            page_size: query.page_size || 10,
            total: 50,
            data: <any>{
                time: "@integer(1609459200000, 1635769600000)",
                createTime: "@integer(1609459200000, 1635769600000)",
                name: "@cword(2, 5)",
                price: "@integer(100, 1000)",
                count: "@integer(1, 100)",
                imgUrl: '@dataImage("200x200", "商品图片")',
            },
        }),
    );
};
